/**
 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	//config.uiColor = '#AADC6E';
	config.uiColor = '#eeeeee';
	config.extraPlugins = 'onchange';
	config.allowedContent = {
	    '$1': {
	        // Use the ability to specify elements as an object.
	        elements: CKEDITOR.dtd,
	        attributes: true,
	        styles: true,
	        classes: true
	    }
	};
	config.disallowedContent = "script";

	config.filebrowserBrowseUrl = '/kcfinder/browse.php?type=files';
	config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?type=images';
	config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?type=flash';
	config.filebrowserUploadUrl = '/kcfinder/upload.php?type=files';
	config.filebrowserImageUploadUrl = '/kcfinder/upload.php?type=images';
	config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?type=flash';

	config.toolbar_Basic = [
		['Source','-','Bold','Italic','Underline']
	];

	config.toolbar_Standard = [
		{ name: 'document', items: [ 'Source' ] },
		{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo' ] },
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] },
		{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
		{ name: 'insert', items: [ 'NumberedList','BulletedList','-','Outdent','Indent','Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak' ] },
		{ name: 'styles', items: [ 'Styles', 'Format' ] },
		{ name: 'tools', items: [ 'Maximize', 'ShowBlocks', '-', 'About' ] }
	];
};
